• From , drag Add Value inside the left_key() event.

Make sure the command has a green block ···· in front of it.

  • Change the variable to left_count.

This command will add 1 to the value of left_count each time the left arrow key is pressed.

For example, if the player presses the left arrow key three times, than the value of left_count will be 3.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)